package com.pw.lit.service.impl;

import com.pw.lit.bean.History;
import com.pw.lit.bean.HistoryExample;
import com.pw.lit.mapper.HistoryMapper;
import com.pw.lit.service.HistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("historyService")
public class HistoryServiceImpl implements HistoryService {

    @Autowired
    private HistoryMapper historyMapper;

    @Override
    public int countByExample(HistoryExample example) {
        return historyMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(HistoryExample example) {
        return historyMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer hid) {
        return historyMapper.deleteByPrimaryKey(hid);
    }

    @Override
    public int insert(History record) {
        return historyMapper.insert(record);
    }

    @Override
    public int insertSelective(History record) {
        return historyMapper.insertSelective(record);
    }

    @Override
    public List<History> selectByExample(HistoryExample example) {
        return historyMapper.selectByExample(example);
    }

    @Override
    public History selectByPrimaryKey(Integer hid) {
        return historyMapper.selectByPrimaryKey(hid);
    }

    @Override
    public int updateByExampleSelective(History record, HistoryExample example) {
        return historyMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(History record, HistoryExample example) {
        return historyMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(History record) {
        return historyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(History record) {
        return historyMapper.updateByPrimaryKey(record);
    }
}